package com.gitee.zhziyun.cnfsystem.config;

public class IpPortConfig {
    private static String heartBeatIp = "255.255.255.255";
    private static String multicastIp = "225.0.0.1";
    private static String localIp = null;
    private static int heartBeatPort = 2425;
    private static int multicastPort = 9999;
    private static int receivePort = 2424;

    public static String getHeartBeatIp() {
        return heartBeatIp;
    }

    public static int getHeartBeatPort() {
        return heartBeatPort;
    }

    public static void setHeartBeatIp(String heartBeatIp) {
        IpPortConfig.heartBeatIp = heartBeatIp;
    }

    public static void setHeartBeatPort(int heartBeatPort) {
        IpPortConfig.heartBeatPort = heartBeatPort;
    }

    public static int getReceivePort() {
        return receivePort;
    }

    public static void setReceivePort(int receivePort) {
        IpPortConfig.receivePort = receivePort;
    }

    public static String getMulticastIp() {
        return multicastIp;
    }

    public static int getMulticastPort() {
        return multicastPort;
    }

    public static void setMulticastIp(String multicastIp) {
        IpPortConfig.multicastIp = multicastIp;
    }

    public static void setMulticastPort(int multicastPort) {
        IpPortConfig.multicastPort = multicastPort;
    }

    public static void setLocalIp(String localIp) {
        IpPortConfig.localIp = localIp;
    }

    public static String getLocalIp() {
        return localIp;
    }
}
